import request from "@/utils/request";

//获取所有员工
export function getEmployeeList(){
  return request({
    url:"/employee/getEmployeeList",
    method:"get",
  })
}

//获取员工信息
export function getEmployeeInfo(employeeId) {
  return request({
    url: "/employee/getEmployeeInfo",
    method: "get",
    param:{employeeId}
  });
}

//修改员工信息
export function updateEmployeeInfo(userId){
  return request({
    url:'/employee/updateEmployeeInfo',
    method:'post',
    params:{userId}
  })
}

//获取员工待办
export function getTodos(userId){
  return request({
    url: "/employee/todos",
    method:"get",
    params:{userId}
  });
}

//获取所有部门
export function getDepartments(){
  return request({
    url:'/employee/departments',
    method:'get'
  })
}

//信息录入提交
export function inputInfo(employeeInfo){
  return request({
    url:'/employee/inputInfo',
    method:'post',
    params:{employeeInfo}
  })
}

//设置待办事项
export function setTodo(todo,time,tag){
  return request({
    url:'/employee/setTodo',
    method:"post",
    params:{todo,time,tag}
  })
}
